
#include "i386/config.h"
	.extern  main16
	.global  __entry

	.code16gcc
	.section ".head", "ax"
	.equ	STACK_ADDR, 0x7FF0
__entry:
	/* 初始化段寄存器*/
	mov	%cs, %ax
	mov	%ax, %ds
	mov	%ax, %es
	mov	%ax, %fs
	mov	$0x0, %ax
	mov	%ax, %ss
	
	movw	$STACK_ADDR, %sp
	call	main16

	.L1:
	jmp	.L1
	ret
	